package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<Role> findAll();

    void add(Role role, Integer[] menuIds, Integer[] permissionIds);

    void edit(Role role, Integer[] menuIds, Integer... permissionIds);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    Map findRoleAndReShowByRoleId(Integer roleId);

    void delete(Integer roleId);

    Role findByNameOrKeyword(Role role);
}
